package com.easyboot.framework.configs;

import com.easyboot.constant.JacksonConstants;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

/**
 * @author yushuo
 * @className
 * @descripton TODO
 * @date 2021/1/27 10:23
 **/
@Configuration
public class JacksonConfig {

    /**
     * Jackson 配置
     * */
    @Bean
    public MappingJackson2HttpMessageConverter jackson2HttpMessageConverter(){

        return JacksonConstants.jackson2HttpMessageConverter;
    }
}
